#ifndef BARMETER_H
#define BARMETER_H

#include <QtGui>
#include <QFrame>
#include <QImage>

//--------------------------------------------------------------------------
// BarMeter
//--------------------------------------------------------------------------

class BarMeter : public QWidget
{
    Q_OBJECT

public:
    BarMeter(QWidget *parent = 0);
    void setLevel(qreal value1, qreal value2);

protected:
    void paintEvent(QPaintEvent *event);

private:
    qreal m_level1;
    qreal m_level2;
    QPixmap m_pixmap;
};

#endif // BARMETER_H
